package com.gao;
import com.gao.Test1.*;
public class Test1 {
    String name;
    int age;
    public void rest () {
        System.out.println("休息一会!");
    }

    public static void main(String[] args) {
        Test1 p = new Test1();
        p.rest();
        Student ps = new Student();
        ps.Stdy();
    }
}

class Student extends Test1{
    String addres;
    public void Stdy() {
        System.out.println(name);
    }
    public void Test1(String name,int age,String addres){
        this.name = name;
        this.age = age;
        this.addres = addres;
    };
}